package com.vinaprime.primeschedule.presentation;

import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.widget.Toast;

public class PrimeScheduleService extends Service {
	private MediaPlayer mp;
	
	@Override
	public IBinder onBind(Intent arg0) {
		return null;
	}
	
	@Override
	public void onCreate() {
	  super.onCreate();
	  Toast.makeText(getApplicationContext(), "VinaPrime, Hello World!!!", Toast.LENGTH_SHORT).show();
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Toast.makeText(getApplicationContext(), "VinaPrime, Hello World!!!", Toast.LENGTH_SHORT).show();
		return 0;
	}
	
	@Override
	public void onDestroy() {
		//mp.release();
		
		//super.onDestroy();
		//super.onCreate();
		Intent service = new Intent(getApplicationContext(), PrimeScheduleService.class);

		startService(service);
	}
}
